package org.example;

import java.util.UUID;

public class Main {
    public static void main(String[] args) {
        String s="10001";
        boolean flag=s.matches("^1-9{4,}$");
        flag=s.matches("^[1-9]\\d{4,}$");
        System.out.println(flag);
    }
}